package com.slipper.common.permit;

import java.util.ArrayList;
import java.util.List;

/**
 * 权限判断服务
 */
public class PermitService {
    private final List<String> urList = new ArrayList<>();
    
    public void add(String url) {
        this.urList.add(url);
    }
    
    /**
     * 是否有操作此url的权限
     */
    public boolean hasPermit(String url) {
        return this.urList.contains(url);
    }
}
